package com.lmind.core.gps.gateway;

import com.lmind.core.async.ResultHandler;
import com.lmind.core.gps.terminal.message.AbstractMessage;
import com.lmind.core.gps.terminal.message.ReplyMessage;
import com.lmind.core.message.AsyncMessageProcessor;

/**
 * 终端网关
 * 1.和终端保持会话
 * 2.向在线终端发送消息或接收其消息
 * 2.将终端的协议转换为标准协议
 * @author 刘勉
 *
 */
public interface TerminalGateway {
	
	void setProcessor(AsyncMessageProcessor<GatewayMessageContext, AbstractMessage> processor);
	
	void send(String deviceSerial, AbstractMessage message, ResultHandler<ReplyMessage> handler);
}
